package com.dwyinyuan.infrastructure.config;

import com.github.dozermapper.core.*;
import org.springframework.context.annotation.*;

/**
 * 微信公众号：笛舞音缘
 * Created by Andy on 2020-08-26.
 */
@Configuration
public class DozerConfiguration {

    @Bean
    public Mapper mapper() {
        DozerBeanMapper mapper = (DozerBeanMapper) DozerBeanMapperBuilder.buildDefault();
        return mapper;
    }
}
